<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?>
    <div class="partials--banner">
        <img srcset="<?php echo SKIN_PATH;?>images/banner-1920w.jpg" alt="">
    </div>
    <?php if(!$CATEGORYS[$top_parentid]) { ?>
                 <?php $cateid=$catid?>
                 <?php } else { ?>
                 <?php $cateid=$CATEGORYS[$top_parentid]['catid'];?>
    <?php } ?>
    <div class="partials--breadcrumb">
        <div class="container">
            <div class="big-title"><?php if($CATEGORYS[$top_parentid][child] == 0 && $CATEGORYS[$top_parentid][modelid] == 3) { ?>PRODUCT
               <?php } elseif ($CATEGORYS[$top_parentid][child] == 0 && $CATEGORYS[$top_parentid][modelid] == 0) { ?><?php echo $catdir;?><?php } elseif ($CATEGORYS[$top_parentid][child] == 0 && $CATEGORYS[$top_parentid][modelid] == 0 || $CATEGORYS[$top_parentid][modelid] == 11) { ?> NEWS CENTER<?php } else { ?><?php echo $CATEGORYS[$cateid]['catdir'];?><?php } ?></div>
            <div class="name">贏世自动化</div>
            <div class="breadcrumb">
                <span>您所在的位置:&nbsp;</span>
                <ul class="list">
                    <li class="item">
                       <a href="<?php echo WEB_PATH;?>">首页</a>>
                    </li class="item">
                    <?php echo catpos($catid);?>
                </ul>
            </div>
        </div>
    </div>
<div class="container l-layout content-min-heihgt">
        <div class="l-left">
            <div class="partials--sidebar">
                <div class="title">赢世<?php if($CATEGORYS[$top_parentid][child] == 0 && $CATEGORYS[$top_parentid][modelid] == 3) { ?>产品中心<?php $cateid = 2;?>
               <?php } elseif ($CATEGORYS[$top_parentid][child] == 0 && $CATEGORYS[$top_parentid][modelid] == 0) { ?>自动化
               <?php } elseif ($CATEGORYS[$top_parentid][child] == 0 && $CATEGORYS[$top_parentid][modelid] == 0 || $CATEGORYS[$top_parentid][modelid] == 11) { ?>新闻中心 
               <?php $cateid=3;?>
               <?php } else { ?><?php echo $CATEGORYS[$cateid]['catname'];?><?php } ?></div>
               <?php if($CATEGORYS[$top_parentid][child] == 0 && $CATEGORYS[$top_parentid][modelid] == 0) { ?> 
               <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=80223a9794463b455e86f4575f8f95b7&sql=select+%2A+from+phpcms_category+where+parentid%3D0+and+modelid%3D0&return=cateArr\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("select * from phpcms_category where parentid=0 and modelid=0 LIMIT 20");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$cateArr = $a;unset($a);?><?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
                <?php } else { ?>
                <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=4fac97a466b6fb47a2564403a4aa3460&action=category&catid=%24cateid&siteid=%24siteid&return=cateArr\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$cateArr = $content_tag->category(array('catid'=>$cateid,'siteid'=>$siteid,'limit'=>'20',));}?><?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
                <?php } ?>
                <ul class="list">
                   <?php $n=1;if(is_array($cateArr)) foreach($cateArr AS $cv) { ?>
                    <li class="item <?php if($cv['catid'] == $catid) { ?> is-active<?php } ?>">
                        <a href="<?php echo $cv['url'];?>"><?php echo $cv['catname'];?></a>
                    </li>
                   <?php $n++;}unset($n); ?>
                </ul>
            </div>
        </div>